<?php
/**
 * Reservation Model
 * Author : CuongNV
 */

class Reservation extends AppModel {
	public $useTable = 'reservation';
	// public $virtualFields = array(
 //    	'time_start' => 'UNIX_TIMESTAMP(Reservation.start)',
 //    	'time_end' => 'UNIX_TIMESTAMP(Reservation.end)'
	// );


	public $belongsTo = array(
		// 'Users' => array(
		// 	'className' => 'Users',
		// 	'foreignKey' => 'users_id',
		// 	'conditions' => '',
		// 	'fields' => '',
		// 	'order' => ''
		// ),
		'Guest' => array(
			'className' => 'Guest',
			'foreignKey' => 'guest_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Room' => array(
			'className' => 'Room',
			'foreignKey' => 'rooms_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);


	
}
